-- GENERATED SPELL FOR [Fizzle Darkstorm] --


function spell0_3203(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3203', 3000, 1)
end

function spell1_3203(pUnit, Event) --@Soul Siphon,Drain--
pUnit:FullCastSpellOnTarget(7290,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_3203', 10000, 1)
end

function spell2_3203(pUnit, Event) --@Summon Imp,Self--
pUnit:FullCastSpellOnTarget(11939,pUnit)
pUnit:RegisterEvent('Sorts_3203', 611, 1)
end

function Sorts_3203(pUnit, Event)
local choix_sorts_3203 = math.random(0, 2)
if choix_sorts_3203 == 0 then
pUnit:RegisterEvent('spell0_3203', 1, 1)
end
if choix_sorts_3203 == 1 then
pUnit:RegisterEvent('spell1_3203', 1, 1)
end
if choix_sorts_3203 == 2 then
pUnit:RegisterEvent('spell2_3203', 1, 1)
end
end

function mob3203_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3203', math.random(1500, 3000), 1)
end

function mob3203_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3203_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3203_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3203, 1, 'mob3203_Action')
RegisterUnitEvent(3203, 2, 'mob3203_Leave')
RegisterUnitEvent(3203, 3, 'mob3203_Kill')
RegisterUnitEvent(3203, 4, 'mob3203_Die')
